| |
 |
|
|
|
|
Code Window |
|
|
|
| |
 |
|
|
|
|
Breakdown of an Event Procedure |
|
|
|
| |
 |
|
|
|
|
How Do You Use Events? |
|
|
|
| |
 |
|
|
|
|
Changing Properties at Runtime |
|
|
|
| |
 |
|
|
|
|
Common Events |
|
|
|
| |
 |
|
|
|
|
Form Events |
|
|
|
| |
 |
|
|
|
|
Form_Initialize() |
|
|
|
| |
 |
|
|
|
|
Form_Load() |
|
|
|
| |
 |
|
|
|
|
Form_Resize() |
|
|
|
| |
 |
|
|
|
|
Form_Activate() |
|
|
|
| |
 |
|
|
|
|
Form_Deactivate() |
|
|
|
| |
 |
|
|
|
|
Form_QueryUnload() |
|
|
|
| |
 |
|
|
|
|
Form_Unload() |
|
|
|
| |
 |
|
|
|
|
Form_Terminate() |
|
|
|
| |
 |
|
|
|
|
Label Events |
|
|
|
| |
 |
|
|
|
|
Text Box Events |
|
|
|
| |
 |
|
|
|
|
The TextBox_Change() Event |
|
|
|
| |
 |
|
|
|
|
Command Button Events |
|
|
|
| |
 |
|
|
|
|
The CommandButton_Click() Event |
|
|
|
| |
 |
|
|
|
|
Frame Events |
|
|
|
| |
 |
|
|
|
|
Option Button Events |
|
|
|
| |
 |
|
|
|
|
The OptionButton_Click() Event |
|
|
|
| |
 |
|
|
|
|
Check Box Events |
|
|
|
| |
 |
|
|
|
|
The CheckBox_Click() Event |
|
|
|
| |
 |
|
|
|
|
Picture Control Events |
|
|
|
| |
 |
|
|
|
|
The Picture_Click() Event |
|
|
|
| |
 |
|
|
|
|
Image Control Events |
|
|
|
| |
 |
|
|
|
|
List Box Events |
|
|
|
| |
 |
|
|
|
|
The ListBox_Click() Event |
|
|
|
| |
 |
|
|
|
|
The ListBox_ItemCheck Event |
|
|
|
| |
 |
|
|
|
|
Combo Box Events |
|
|
|
| |
 |
|
|
|
|
The ComboBox_Change Event |
|
|
|
| |
 |
|
|
|
|
The ComboBox_Click() Event |
|
|
|
| |
 |
|
|
|
|
The ComboBox_DropDown() Event |
|
|
|
| |
 |
|
|
|
|
Menu Events |
|
|
|
| |
 |
|
|
|
|
The Menu_Click() Event |
|
|
|
| |
 |
|
|
|
|
Adding Code to a Top-level Menu |
|
|
|
| |
 |
|
|
|
|
Adding Shortcut Keys |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Review Questions |
|
|
|
| |
| |
 |
|
|
|
|
What Is a Variable? |
|
|
|
| |
 |
|
|
|
|
Data Types |
|
|
|
| |
 |
|
|
|
|
True and False |
|
|
|
| |
 |
|
|
|
|
Declaring Variables |
|
|
|
| |
 |
|
|
|
|
One-line Declarations |
|
|
|
| |
 |
|
|
|
|
Assigning Values to Variables |
|
|
|
| |
 |
|
|
|
|
Scope and Lifetime of a Variable |
|
|
|
| |
 |
|
|
|
|
What Is a Module? |
|
|
|
| |
 |
|
|
|
|
Limiting Your Scope |
|
|
|
| |
 |
|
|
|
|
Rules of Scope |
|
|
|
| |
 |
|
|
|
|
Public Variables in Standard Modules |
|
|
|
| |
 |
|
|
|
|
Examples of Variables |
|
|
|
| |
 |
|
|
|
|
Local Variables |
|
|
|
| |
 |
|
|
|
|
Module Variables |
|
|
|
| |
 |
|
|
|
|
Option Explicit |
|
|
|
| |
 |
|
|
|
|
Using a Module Variable |
|
|
|
| |
 |
|
|
|
|
Public Variables |
|
|
|
| |
 |
|
|
|
|
Local Variables Mask Public Variables |
|
|
|
| |
 |
|
|
|
|
\Static Variables |
|
|
|
| |
 |
|
|
|
|
Fixed-length Strings |
|
|
|
| |
 |
|
|
|
|
Implicitly Declared Variables |
|
|
|
| |
 |
|
|
|
|
Naming Variables |
|
|
|
| |
 |
|
|
|
|
Variable Naming Standards |
|
|
|
| |
 |
|
|
|
|
Scope Prefixes |
|
|
|
| |
 |
|
|
|
|
The Variant Data Type |
|
|
|
| |
 |
|
|
|
|
Numeric Strings |
|
|
|
| |
 |
|
|
|
|
Concatenating Strings |
|
|
|
| |
 |
|
|
|
|
Checking the Type of a Variant |
|
|
|
| |
 |
|
|
|
|
Empty Variants |
|
|
|
| |